package com.iwhalecloud.uncc.utils;

import com.iwhalecloud.uncc.domain.ArchiverMsg;
import org.openjdk.jol.info.ClassLayout;

/**
 * @author zq
 * @date 2021/10/31 12:07
 * @description
 */
public class ClassLayoutUtil {

    /**
     * 计算对象大小
     */
    public static void printMsg(ArchiverMsg archiverMsg){
        String layout = ClassLayout.parseInstance(archiverMsg).toPrintable();
        System.out.println(layout);
    }


}
